package com.lanxin.qx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lanxin.qx.entity.QxFunction;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface QxFunctionMapper extends BaseMapper<QxFunction> {

    /**
     * 根据角色ID查询拥有的权限ID
     * @param roleId 角色ID
     * @return 权限ID列表
     */
    List<Integer> selectFunctionIdsByRoleId(@Param("roleId") Integer roleId);

    //列表我的权限
    public List<QxFunction> listMyFunction(Integer oid);

    //存入redis中
    public QxFunction functions(Integer oid);
}